import { createApp } from "vue";
import App from "./App.vue";

// 引入 element-plus 并注册
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

// 引入 svg
import "virtual:svg-icons-register";

// 引入封装组件 并注册 src/components/index
import gloablComponent from "./components/index";

// 全局样式引入 scss
import "@/styles/index.scss";

// 全局引入 axios
import axios from "axios";

// 全局引入 router 并注册
import router from "./router/index";

// 测试 mock 是否可用
// axios({
//     url:'/api/user/login',
//     method: 'post',
//     data: {
//         username:'admin',
//         password: '111111',
//     }
// })

const app = createApp(App);

app.use(ElementPlus);
app.use(gloablComponent);
app.use(router);
app.mount("#app");
